<%--
 - Copyright (c) 2009-2011 ETCORE Labs. All rights reserved. 
 - 
 - This software is the confidential and proprietary information of ETCORE Labs. 
 - You shall not disclose such confidential information and shall use it only
 - in accordance with the terms of the license agreement you entered into
 - with ETCORE Labs.
 -
 - Support can be obtained from support forums at:
 - http://www.etcore.com/
 -
 - @author: ETCORE GroupTalk developers
 -
 --%>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://jakarta.apache.org/taglibs/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title><c:out value="${context.manage_topic }" />-<c:out
	value="${context.title }" /></title>
<link rel="stylesheet" href="/group/css/styles.css" type="text/css">
<script language="javascript">
function checkForm1()
{
if(form1.name.value==""||form1.name.value.replace(/(^\s*)|(\s*$)/g, "")=="")
{
alert("<c:out value='${context.msg_name_null}' />");
form1.name.focus();
return false;
}
return true;
}

function checkForm(id)
{
	var form=document.getElementById(id);
if(form.name.value==""||form.name.value.replace(/(^\s*)|(\s*$)/g, "")=="")
{
alert("<c:out value='${context.msg_name_null}' />");
form.name.focus();
return false;
}
return true;
}
 
 
 
 
function showControl(id){
	 
	 showDivControl(id,350,160); 
	
	 if(document.body.scrollTop>0) 
		  
	window.scroll(0,document.body.scrollTop+20);
	  
	 else window.scroll(0,20);

 
 

}
function hideControl(id){
 hideDivControl(id);

 
}

</script>
</head>
<body bottomMargin=0 topMargin=0 marginheight="0">
<c:import url="/group/ui-component/divdialog/divdialog.html" />
<table width="100%" border="0" cellpadding="0" cellspacing="0"
	align=center>
	<%-- //////////////////////banner --%>
	<tr>
		<td><c:import url="/banner.jsp?currentPlatform=0" /></td>
	</tr>

	<tr>
		<td>

		<TABLE cellSpacing=0 cellPadding=0 width=100% align=center>

			<TBODY>


				<TR>
					<c:if test="${isAdmin }">

						<td width=120 nowrap valign=top><c:import
							url="/group/adminMenu.jsp?currentPlatform=0" /></td>

					</c:if>

					<TD>



					<table cellpadding=0 cellspacing=0
						style="border: 1px solid #d4d2d4" width=100% align=center>


						<tr bgcolor="#ffffff">
							<td nowrap align=center width=180><c:set var='viewer'
								value='groupdetail' /> <c:if test="${group.open==3 }">
								<c:set var='viewer' value='bookmarksadmin' />
							</c:if> <a
								href="/group/<c:out value='${viewer}' /><c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />">
							<c:if
								test="${not empty group.pic &&fn:indexOf(group.pic,'upload')!=-1 }">
								<img border=0 src="/<c:out value='${group.pic}' />" width=48
									height=48>
							</c:if> <c:if
								test="${empty group.pic ||fn:indexOf(group.pic,'upload')==-1 }">
								<img border=0 src="/group/images/root.gif" width=48 height=48>
							</c:if> <br />
							<font size=2><b><c:out value='${group.name }' /></b></font></a></td>
							<td width=100%>
							<table>

								<tr>
									<td nowrap style="width: 65px; overflow: hidden"><b><c:out
										value='${context.owner}' />：</b></td>
									<td><c:import
										url="/group/serverMenu.jsp?currentPlatform=${group.open}" /></td>
								</tr>
								<tr>
									<td><b><c:out value='${context.group_admin}' />:</b></td>
									<td><a
										href="/group/editGroup<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />"><c:out
										value='${context.edit_group}' /></a>&nbsp; <a
										href="/group/manageTopic<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />"><font
										color=red><c:out value='${context.manage_topic}' /></font></a>&nbsp;<a
										href="/group/groupdetail<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />&op=index"><c:out
										value='${context.update_index}' /></a></td>
								</tr>


							</table>


							</td>

						</tr>
				 
						<tr bgcolor=#F3F3F3>
							<td colspan=2 align="center" nowrap><font size="2"
								face="verdana"><b><c:out
								value='${context.manage_topic }' /></b></font></td>
						</tr>



						<tr>
							<td colspan=2 align="center" nowrap>
							<table width=100% style="border: 1px solid #d4d2d4">
								<tr>
									<td colspan=3><input type=button
										onclick="showControl('addTopic')" style="border: 0px; cursor: pointer; height: 20px; font-size: 12px; color: #ffffff; background: #36518B;"
										value="<c:out
											value='${context.add_topic}' />"></td>
								</tr>
								<tr bgcolor="#ffffff">
									<td align=left><c:out value='${context.text_rank}' /></td>
									<td align=left><c:out value='${context.text_name }' /></td>
									<td align=center><c:out value='${context.operation }' /></TD>
								</TR>

								<c:set var="rank" value="1" />
								<c:forEach var="topic" items="${topics}">
									<tr bgcolor="#ffffff">
										<td align=left width=15%>
										<form
											action="/group/manageTopic<c:out value='${context.postfix }'/>"><input
											type=hidden name="id" value="<c:out value='${param.id}' />">
										<input type=hidden name="cmd" value="sortTopics"> <input
											type=hidden name="sourceRankv"
											value="<c:out value='${rank}' />"> <select name=rankv
											onChange="this.form.submit();">
											<c:set var="count" value="1" />
											<c:forEach begin="1" end="${topicSize}" step="1">

												<option value="<c:out value='${count }' />"
													<c:if test="${count==rank }"> selected </c:if>><c:out
													value='${count }' /></option>
												<c:set var="count" value="${count+1 }" />
											</c:forEach>
										</select></form>
										</td>
										<td width=40% align="left" width="20%"><a
											href="/group/<c:out value='${viewer }'/><c:out value='${context.postfix }'/>?tid=<c:out value='${topic.id }'/>&id=<c:out value='${param.id }'/>"><c:out
											value='${topic.name }' /></a>&nbsp; <c:set var="size"
											value="${topic.id }msgSize" />(<c:out
											value="${requestScope[size]}" />)</TD>
										<TD width=45% align=center><input type=button value="${context.edit_name }" style="border: 0px; cursor: pointer; height: 20px; font-size: 12px; color: #ffffff; background: #36518B;"
											onclick="showControl('editTopic<c:out value='${topic.id }' />')">&nbsp;&nbsp;<input type=button value="${context.transfer_msgs }" style="border: 0px; cursor: pointer; height: 20px; font-size: 12px; color: #ffffff; background: #36518B;"
											onclick="showControl('transferSubMessages<c:out value='${topic.id }' />')">&nbsp;&nbsp;<input type=button value="${context.del_topic }" style="border: 0px; cursor: pointer; height: 20px; font-size: 12px; color: #ffffff; background: #36518B;"
									
											onclick='if(window.confirm("<c:out value='${context.msg_del_topic }'/>")){		window.location.href="/group/manageTopic${context.postfix }?cmd=delTopic&tid=${topic.id}&id=${param.id}";return true;}else{return false;}'></TD>
									</TR>
									<tr>
										<td colspan=3>
										<div id="editTopic<c:out value='${topic.id }' />"
											style="display: none; valign: center; position: absolute; top: 15%; left: 20%; width: 350px; padding: 0px; border: 1px solid orange; background-color: white; z-index: 1002; overflow: hidden;">

										<FORM id="topicForm<c:out value='${topic.id }' />"
											onSubmit="return checkForm('topicForm<c:out value='${topic.id }' />');"
											method=post
											action="/group/manageTopic<c:out value='${context.postfix }' />">
										<input type=hidden name=cmd value="editTopic"> <input
											type=hidden name=tid value="<c:out value='${topic.id }' />">
										<input type=hidden name=id
											value="<c:out value='${param.id }' />">
										<table align=center bgcolor="#B7B7B7" cellpadding="0"
											cellspacing="0" border="0" width=100%>
											<tr bgcolor="orange">
												<td nowrap><img src="/group/images/winlogo.gif"
													border=0>&nbsp;<b><c:out
													value='${context.edit_topic }' /></b></td>
												<td align=right><img src="/group/images/close.gif"
													style="cursor:pointer"
													onClick="hideControl('editTopic<c:out value='${topic.id }' />')"
													border=0 /></td>
											</tr>
											<tr>
												<td colspan=2>
												<table bgcolor="#B7B7B7" cellpadding=3 cellspacing=1
													border=0 width=100% align=center>
													<tr bgcolor=#F3F3F3>
														<td colspan=2 align="center" nowrap><font size="2"
															face="verdana"><b><c:out
															value='${context.edit_topic }' /></b></font></td>
													</tr>
													<tr bgcolor="#ffffff">
														<td align="center" width="100" nowrap><c:out
															value='${context.text_name}' /></TD>
														<TD align=left><input type=text name="name" size=25
															value="<c:out value='${topic.name }' />" maxlength=120></TD>
													</TR>

													<tr bgcolor=#F3F3F3>
														<td align="center" colspan=2><input type=submit style="cursor:pointer"
															value="<c:out value='${context.button_ok}' />">&nbsp;&nbsp;<input
															type=button style="cursor:pointer"
															onclick="hideControl('editTopic<c:out value='${topic.id }' />')"
															value="<c:out value='${context.button_cancel}' />"></td>
													</tr>
												</table>
												</td>
											</tr>
										</table>

										</FORM>

										</div>
										<div id="transferSubMessages<c:out value='${topic.id }' />"
											style="display: none; valign: center; position: absolute; top: 15%; left: 20%; width: 350px; padding: 0px; border: 1px solid orange; background-color: white; z-index: 1002; overflow: hidden;">

										<FORM
											id="transferSubMessagesForm<c:out value='${topic.id }' />"
											onSubmit="return checkForm('transferSubMessagesForm<c:out value='${topic.id }' />');"
											method=post
											action="/group/manageTopic<c:out value='${context.postfix }' />">
										<input type=hidden name=cmd value="editTopic"> <input
											type=hidden name=tid value="<c:out value='${topic.id }' />">
										<input type=hidden name=id
											value="<c:out value='${param.id }' />">
										<table align=center bgcolor="#B7B7B7" cellpadding="0"
											cellspacing="0" border="0" width=100%>
											<tr bgcolor="orange">
												<td nowrap><img src="/group/images/winlogo.gif"
													border=0>&nbsp;<b><c:out
													value='${context.transfer_msgs }' /></b></td>
												<td align=right><img src="/group/images/close.gif"
													style="cursor:pointer"
													onClick="hideControl('transferSubMessages<c:out value='${topic.id }' />')"
													border=0 /></td>
											</tr>
											<tr>
												<td colspan=2>
												<table bgcolor="#B7B7B7" cellpadding=3 cellspacing=1
													border=0 width=100% align=center>
													<tr bgcolor=#F3F3F3>
														<td colspan=2 align="center" nowrap><font size="2"
															face="verdana"><b><c:out
															value='${context.transfer_msgs }' /></b></font></td>
													</tr>
													<tr bgcolor="#ffffff">
														<td width=70>${context.text_to } &nbsp;</td>
														<td>&nbsp; <select name=destinationTopicId>
															<c:forEach var="targetTopic" items="${topics}">
																<option value="${targetTopic.id }">${targetTopic.name
																}</option>
															</c:forEach>
														</select></td>
													</TR>

													<tr bgcolor=#F3F3F3>
														<td align="center" colspan=2><input type=submit style="cursor:pointer"
															value="<c:out value='${context.button_ok}' />">&nbsp;&nbsp;<input
															type=button style="cursor:pointer"
															onclick="hideControl('transferSubMessages<c:out value='${topic.id }' />')"
															value="<c:out value='${context.button_cancel}' />"></td>
													</tr>
												</table>
												</td>
											</tr>
										</table>

										</FORM>

										</div>
										</td>
									</tr>
									<c:set var="rank" value="${rank+1 }" />

								</c:forEach>
							</table>
							</td>
						</tr>

						<tr>
							<td colspan=2>
							<div id="addTopic"
								style="display: none; valign: center; position: absolute; top: 15%; left: 20%; width: 350px; padding: 0px; border: 1px solid orange; background-color: white; z-index: 1002; overflow: hidden;">
							<FORM name="form1" onSubmit="return checkForm1();" method=post
								action="/group/manageTopic<c:out value='${context.postfix }' />"><input
								type=hidden name=cmd value="addTopic"> <input
								type=hidden name=id value="<c:out value='${param.id}' />">
							<table align=center bgcolor="#B7B7B7" cellpadding="0"
								cellspacing="0" border="0" width="350">

								<tr bgcolor="orange">
									<td nowrap><img src="/group/images/winlogo.gif" border=0>&nbsp;<b><c:out
										value='${context.add_topic }' /></b></td>
									<td align=right><img src="/group/images/close.gif"
										style="cursor:pointer" onClick="hideControl('addTopic')" border=0 /></td>
								</tr>
								<tr bgcolor=#F3F3F3>
									<td colspan=2 align="center" nowrap><font size="2"
										face="verdana"><b><c:out
										value='${context.add_topic}' /></b></font></td>
								</tr>
								<tr bgcolor="#ffffff">
									<td align="center" width=80 nowrap><c:out
										value='${context.text_name}' /></TD>
									<TD align=left><input type=text name="name" size=25
										maxlength=120></TD>
								</TR>

								<tr bgcolor=#F3F3F3>
									<td align="center" colspan=2><input type=submit
										value="<c:out value='${context.button_ok}' />">&nbsp;&nbsp;<input style="cursor:pointer"
										type=button onclick="hideControl('addTopic')"
										value="<c:out value='${context.button_cancel}' />"></td>
								</tr>

							</table>

							</FORM>
							</div>

							<div id="addTagContainer"
								style="display: none; valign: center; position: absolute; top: 15%; left: 20%; width: 350px; padding: 0px; border: 1px solid orange; background-color: white; z-index: 1002; overflow: hidden;">
							<FORM name="form1" onSubmit="return checkForm1();" method=post
								action="/group/manageTopic<c:out value='${context.postfix }' />"><input
								type=hidden name=cmd value="addTagContainer"> <input
								type=hidden name=id value="<c:out value='${param.id}' />">
							<table align=center bgcolor="#B7B7B7" cellpadding="0"
								cellspacing="0" border="0" width="350">

								<tr bgcolor="orange">
									<td nowrap><img src="/group/images/winlogo.gif" border=0>&nbsp;<b><c:out
										value='${context.add_tag_container }' /></b></td>
									<td align=right><img src="/group/images/close.gif"
										style="cursor:pointer" onClick="hideControl('addTagContainer')" border=0 /></td>
								</tr>
								<tr bgcolor=#F3F3F3>
									<td colspan=2 align="center" nowrap><font size="2"
										face="verdana"><b><c:out
										value='${context.add_tag_container}' /></b></font></td>
								</tr>
								<tr bgcolor="#ffffff">

									<TD align=left colspan=2>&nbsp;&nbsp;<c:out
										value='${context.text_name}' /> &nbsp;&nbsp;&nbsp;&nbsp;<input
										type=text name="name" size=35 maxlength=120></TD>
								</TR>

								<tr bgcolor=#F3F3F3>
									<td align="center" colspan=2><input type=submit style="cursor:pointer"
										value="<c:out value='${context.button_ok}' />">&nbsp;&nbsp;<input
										type=button onclick="hideControl('addTagContainer')"  style="cursor:pointer"
										value="<c:out value='${context.button_cancel}' />"></td>
								</tr>

							</table>

							</FORM>
							</div>
							</td>
						</tr>
						<c:if test="${(group.open==1||group.open==2)&&group.nav==0 }">
							<tr>
								<td width=100% colspan=2>
								<table width=100% cellspacing=0 cellpadding=0>
									<tr bgcolor=#f3f3f3>
										<td style="font-size: 13px; font-weight: bold" align=center
											width=100%>${context.tag_management}</td>
									</tr>
									<tr>
										<td><input type=button style="border: 0px; cursor: pointer; height: 20px; font-size: 12px; color: #ffffff; background: #36518B;"
											onclick="showControl('addTagContainer')"
											value="<c:out
											value='${context.add_tag_container}' />"></td>
									</tr>
									<tr>
										<td width=100%>
										<table width=100%>
											<tr bgcolor="#ffffff">
												<td align=left nowrap><c:out
													value='${context.text_rank}' /></td>
												<td align=left><c:out value='${context.text_name }' /></td>
												<td align=center><c:out value='${context.operation }' /></TD>

											</TR>
											<c:set var="rank" value="1" />
											<c:forEach var="tagContainer" items="${tagContainers}">
												<tr bgcolor="#ffffff">
													<td align=left width=20>
													<form
														action="/group/manageTopic<c:out value='${context.postfix }'/>"><input
														type=hidden name="id"
														value="<c:out value='${param.id}' />"> <input
														type=hidden name="cmd" value="sortTagContainers">
													<input type=hidden name="sourceRankv"
														value="<c:out value='${rank}' />"> <select
														name=rankv onChange="this.form.submit();">
														<c:set var="count" value="1" />
														<c:forEach begin="1" end="${tagContainerCount}" step="1">

															<option value="<c:out value='${count }' />"
																<c:if test="${count==rank }"> selected </c:if>><c:out
																value='${count }' /></option>
															<c:set var="count" value="${count+1 }" />
														</c:forEach>
													</select></form>
													</td>
													<td width=10% align="left" nowrap>&nbsp;<a
														href="/group/<c:out value='${viewer }'/><c:out value='${context.postfix }'/>?tcid=<c:out value='${tagContainer.id }'/>&id=<c:out value='${param.id }'/>"><c:out
														value='${tagContainer.name }' /></a></TD>

													<td width=100%>
													<div
														style="border: 1px solid #d2d4d2; height: 155px; overflow: auto;">
													<table width=100%>

														<tr>
															<td colspan=3><input type=button style="border: 0px; cursor: pointer; height: 20px; font-size: 12px; color: #ffffff; background: #36518B;"
																onclick="showControl('addTag${tagContainer.id }')"
																value="<c:out
											value='${context.add_tag}' />">&nbsp;<input
																type=button style="border: 0px; cursor: pointer; height: 20px; font-size: 12px; color: #ffffff; background: #36518B;"
																onclick="showControl('editTagContainer<c:out value='${tagContainer.id }' />')"
																value="<c:out
													value='${context.edit_name }' />">&nbsp;&nbsp;<input type=button 
																value="${context.del }"
																style="border: 0px; cursor: pointer; height: 20px; font-size: 12px; color: #ffffff; background: #36518B;"
																onclick='if(window.confirm("<c:out value='${context.msg_del_now }'/>")){window.location.href="/group/manageTopic${context.postfix }?cmd=delTagContainer&tcid=${tagContainer.id}&id=${param.id}";return true;}else{return false;}'> 
															


															</td>
														</tr>


														<c:set var="tagRank" value="1" />
														<c:set var="tags" value="${tagContainer.id }tags" />
														<c:forEach var="tag" items="${requestScope[tags]}">
															<tr bgcolor="#ffffff">
																<td align=left width=15%>
																<form
																	action="/group/manageTopic<c:out value='${context.postfix }'/>"><input
																	type=hidden name="id"
																	value="<c:out value='${param.id}' />"> <input
																	type=hidden name="cmd" value="sortTags"> <input
																	type=hidden name="tcid" value="${tagContainer.id }"><input
																	type=hidden name="sourceRankv"
																	value="<c:out value='${tagRank}' />"> <select
																	name=rankv onChange="this.form.submit();">
																	<c:set var="count" value="1" />
																	<c:set var="tagCount"
																		value="${tagContainer.id }tagCount" />
																	<c:forEach begin="1" end="${requestScope[tagCount]}"
																		step="1">

																		<option value="<c:out value='${count }' />"
																			<c:if test="${count==tagRank }"> selected </c:if>><c:out
																			value='${count }' /></option>
																		<c:set var="count" value="${count+1 }" />
																	</c:forEach>
																</select></form>
																</td>
																<td width=40% align="left" width="20%"><a
																	href="/group/<c:out value='${viewer }'/><c:out value='${context.postfix }'/>?tagId=<c:out value='${tag.id }'/>&id=<c:out value='${param.id }'/>"><c:out
																	value='${tag.name }' /></a></TD>
																<TD width=45% align=center><input type=button style="border: 0px; cursor: pointer; height: 20px; font-size: 12px; color: #ffffff; background: #36518B;"
																	value="${context.edit_name }" onclick="showControl('editTag${tag.id }')">&nbsp;&nbsp;&nbsp;&nbsp;<input type=button value="${context.del }"   style="border: 0px; cursor: pointer; height: 20px; font-size: 12px; color: #ffffff; background: #36518B;"
																	 
																	onclick='if(window.confirm("<c:out value='${context.msg_del_now }'/>")){window.location.href="/group/manageTopic${context.postfix }?cmd=delTag&tagId=${tag.id}&id=${param.id}";return true;}else{return false;}'></TD>
															</TR>
															<tr>
																<td colspan=3> 
																<div id="editTag<c:out value='${tag.id }' />"
																	style="display: none; valign: center; position: absolute; top: 15%; left: 20%; width: 350px; padding: 0px; border: 1px solid orange; background-color: white; z-index: 1002; overflow: hidden;">

																<FORM id="tagForm<c:out value='${tag.id }' />"
																	onSubmit="return checkForm('tagForm<c:out value='${tag.id }' />');"
																	method=post
																	action="/group/manageTopic<c:out value='${context.postfix }' />">
																<input type=hidden name=cmd value="editTag"> <input
																	type=hidden name=tagId
																	value="<c:out value='${tag.id }' />"> <input
																	type=hidden name=id
																	value="<c:out value='${param.id }' />">
																<table align=center bgcolor="#B7B7B7" cellpadding="0"
																	cellspacing="0" border="0" width=100%>
																	<tr bgcolor="orange">
																		<td nowrap><img src="/group/images/winlogo.gif"
																			border=0>&nbsp;<b><c:out
																			value='${context.edit }' /></b></td>
																		<td align=right><img
																			src="/group/images/close.gif" style="cursor:pointer"
																			onClick="hideControl('editTag<c:out value='${tag.id }' />')"
																			border=0 /></td>
																	</tr>
																	<tr>
																		<td colspan=2>
																		<table bgcolor="#B7B7B7" cellpadding=3 cellspacing=1
																			border=0 width=100% align=center>
																			<tr bgcolor=#F3F3F3>
																				<td colspan=2 align="center" nowrap><font
																					size="2" face="verdana"><b><c:out
																					value='${context.edit }' /></b></font></td>
																			</tr>
																			<tr bgcolor="#ffffff">
																				<td align="center" width="100" nowrap><c:out
																					value='${context.text_name}' /></TD>
																				<TD align=left><input type=text name="name"
																					size=25 value="<c:out value='${tag.name }' />"
																					maxlength=120></TD>
																			</TR>

																			<tr bgcolor=#F3F3F3>
																				<td align="center" colspan=2><input type=submit style="cursor:pointer"
																					value="<c:out value='${context.button_ok}' />">&nbsp;&nbsp;<input
																					type=button style="cursor:pointer"
																					onclick="hideControl('editTag<c:out value='${tag.id }' />')"
																					value="<c:out value='${context.button_cancel}' />"></td>
																			</tr>
																		</table>
																		</td>
																	</tr>
																</table>

																</FORM>

																</div>
																</td>
															</tr>
															
															
															<c:set var="tagRank" value="${tagRank+1 }" />

														</c:forEach>

													</table>

													</div>
													</td>
												</TR>
												<tr>
													<td colspan=4>
													<div
														id="editTagContainer<c:out value='${tagContainer.id }' />"
														style="display: none; valign: center; position: absolute; top: 15%; left: 20%; width: 350px; padding: 0px; border: 1px solid orange; background-color: white; z-index: 1002; overflow: hidden;">

													<FORM
														id="tagContainerForm<c:out value='${tagContainer.id }' />"
														onSubmit="return checkForm('tagcontainerForm<c:out value='${tagContainer.id }' />');"
														method=post
														action="/group/manageTopic<c:out value='${context.postfix }' />">
													<input type=hidden name=cmd value="editTagContainer">
													<input type=hidden name=tcid
														value="<c:out value='${tagContainer.id }' />"> <input
														type=hidden name=id value="<c:out value='${param.id }' />">
													<table align=center bgcolor="#B7B7B7" cellpadding="0"
														cellspacing="0" border="0" width=100%>
														<tr bgcolor="orange">
															<td nowrap><img src="/group/images/winlogo.gif"
																border=0>&nbsp;<b><c:out
																value='${context.edit }' /></b></td>
															<td align=right><img src="/group/images/close.gif"
																style="cursor:pointer"
																onClick="hideControl('editTagContainer<c:out value='${tagContainer.id }' />')"
																border=0 /></td>
														</tr>
														<tr>
															<td colspan=2>
															<table bgcolor="#B7B7B7" cellpadding=3 cellspacing=1
																border=0 width=100% align=center>
																<tr bgcolor=#F3F3F3>
																	<td colspan=2 align="center" nowrap><font size="2"
																		face="verdana"><b><c:out
																		value='${context.edit }' /></b></font></td>
																</tr>
																<tr bgcolor="#ffffff">
																	<td align="center" width="100" nowrap><c:out
																		value='${context.text_name}' /></TD>
																	<TD align=left><input type=text name="name"
																		size=25
																		value="<c:out value='${tagContainer.name }' />"
																		maxlength=120></TD>
																</TR>

																<tr bgcolor=#F3F3F3>
																	<td align="center" colspan=2><input type=submit
																		value="<c:out value='${context.button_ok}' />">&nbsp;&nbsp;<input
																		type=button style="cursor:pointer"
																		onclick="hideControl('editTagContainer<c:out value='${tagContainer.id }' />')"
																		value="<c:out value='${context.button_cancel}' />"></td>
																</tr>
															</table>
															</td>
														</tr>
													</table>

													</FORM>

													</div>
													<div id="addTag${tagContainer.id }"
																style="display: none; valign: center; position: absolute; top: 15%; left: 20%; width: 350px;  padding: 0px; border: 1px solid orange; background-color: white; z-index: 1002; overflow: hidden;">
 
															<FORM id="${tagContainer.id }addTagForm" 
																onSubmit="return checkForm('${tagContainer.id }addTagForm');"
																method=post
																action="/group/manageTopic<c:out value='${context.postfix }' />">
															<input type=hidden name=cmd value="addTag"> <input
																type=hidden name=tcid
																value="<c:out value='${tagContainer.id }' />"> <input
																type=hidden name=id
																value="<c:out value='${param.id }' />">
															<table align=center bgcolor="#B7B7B7" cellpadding="0"
																cellspacing="0" border="0" width=100%>
																<tr bgcolor="orange">
																	<td nowrap><img src="/group/images/winlogo.gif"
																		border=0>&nbsp;<b><c:out
																		value='${context.add_tag }' /></b></td>
																	<td align=right><img src="/group/images/close.gif"
																		style="cursor:pointer"
																		onClick="hideControl('addTag${tagContainer.id }')"
																		border=0 /></td>
																</tr>
																<tr>
																	<td colspan=2>
																	<table bgcolor="#B7B7B7" cellpadding=3 cellspacing=1
																		border=0 width=100% align=center>
																		<tr bgcolor=#F3F3F3>
																			<td colspan=2 align="center" nowrap><font
																				size="2" face="verdana"><b><c:out
																				value='${context.add_tag }' /></b></font></td>
																		</tr>
																		<tr bgcolor="#ffffff">
																			<td align="center" width="100" nowrap><c:out
																				value='${context.text_name}' /></TD>
																			<TD align=left><input type=text name="name"
																				size=25 maxlength=120></TD>
																		</TR>

																		<tr bgcolor=#F3F3F3>
																			<td align="center" colspan=2><input type=submit style="cursor:pointer"
																				value="<c:out value='${context.button_ok}' />">&nbsp;&nbsp;<input
																				type=button style="cursor:pointer"
																				onclick="hideControl('addTag${tagContainer.id }')"
																				value="<c:out value='${context.button_cancel}' />"></td>
																		</tr>
																	</table>
																	</td>
																</tr>
															</table>

															</FORM>

															</div>
													</td>
												</tr>
												<c:set var="rank" value="${rank+1 }" />

											</c:forEach>

										</table>
										</td>
									</tr>
								</table>
								</td>
							</tr>
						</c:if>
					</table>
					</TD>
				</TR>
			</TBODY>
		</TABLE>

		</td>
	</tr>


	<tr>
		<td><BR>
		<BR>
		<c:import url="/footer.jsp" /></td>
	</tr>
	<c:if test="${not empty msg}">
		<script>alert('${msg }')</script>
	</c:if>

</table>





</body>
</html>

